'''
Created on May 18, 2011

@author: Elia Contini
'''

from django.contrib.auth.decorators import login_required
from django.shortcuts import render_to_response
from django.template.context import RequestContext

# remember repository. for deployment
from core import MEutils

@login_required
def index(request):
    user = MEutils.getUser(request.session)
    return render_to_response('student_index.html', {'section': 'dashboard', 'user': user, 'userRole': MEutils.getUserRole(user), }, context_instance=RequestContext(request))